/**
 * 
 */
package com.geezdata.cps.ttk.common.enums;

/**
 * @author zheng
 *
 */
public enum TtkErrorCodeEnum {
	GENERAL(10000, "一般错误"),
	NO_BINDED(20000, "用户未关注公众号"),
	NO_SUMMARY(20001, "提现金额不足1元"),
	SESSION_EXPIRED(20002,"session过期"),
	CODE_EXPIRED(20003,"code过期"),
	OPNENID_NULL(20004,"openId为null"),
	SHARER_NULL(20005,"sharer为null"),
	SEND_FAIL(20006, "红包发送失败"),
	NO_CASH(20007,"用户可提现金额不足"),
	SEND_SHARE(20008,"已经发送过首次分享红包"),
	SEND_INTEGER(20009,"提现金额只能为整数"),
	GOODSID_NULL(20010,"商品id不可为空"),
	GOODS_DOWN(20011,"商品已经下架"),
	NOENOUGH_CASH(20012,"用户可提现金额不符合规定"),
	NOT_ATTEND_INVITE(20013,"未参加当前活动"),
	REDPACK_RECEIVED(20014,"用户已经领取过奖品"),
	REDPACK_NOINVITE(20015,"用户还不能领取该奖品"),
	INVITE_NULL(20016,"活动不存在"),
	REWARD_END(20017,"此奖品的领取活动已经结束");

	private Integer code;
	private String desc; 
	
	private TtkErrorCodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}